<?php

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 * Description of MY_Pagination
 *
 * @author lucas_p
 */
class MY_Pagination extends CI_Pagination {

    //put your code here
    public function __construct($params = array()) {
        if (!isset($params['cur_page'])) {
            $params['cur_page'] = 0;
        }
        if (!isset($params['prev_link'])) {
            $params['prev_link'] = 'Anterior';
        }
        if (!isset($params['next_link'])) {
            $params['next_link'] = 'Próximo';
        }
        if (!isset($params['last_link'])) {
            $params['last_link'] = 'Último';
        }
        if (!isset($params['first_link'])) {
            $params['first_link'] = 'Primeiro';
        }
        if (!isset($params['num_links'])) {
            $params['num_links'] = 4;
        }
        if (!isset($params['uri_segment'])) {
            $params['uri_segment'] = 5;
        }

        parent::__construct($params);
    }

}
